package com.example.cloud.dao.business.reservation;

import com.example.cloud.model.business.reservation.Reservation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * Created by wangtao on 2018/5/17.
 */
@Repository
public interface ReservationRepository extends JpaRepository<Reservation,Long> {
    List<Reservation> findAllByRecordTypeAndAppointmentBetweenAndDeleteFlag(int recordType, Date startDate, Date endDate, int deleteFlag);
}
